/**
 * 全局常量定义
 * 这些常量在应用运行期间不可更改
 */

// 应用配置
export const AppConfig = {
  VERSION: '1.0.0',
  API_BASE_URL: 'https://api.example.com',
  MAX_RETRY_COUNT: 3,
  TIMEOUT: 5000,
} as const;

// 错误码枚举
export const enum ErrorCodes {
  SUCCESS = 0,
  NETWORK_ERROR = 1001,
  AUTH_FAILED = 2001,
}

// 业务常量
export const BusinessConstants = {
  DEFAULT_PAGE_SIZE: 10,
  MAX_UPLOAD_SIZE: 1024 * 1024 * 5, // 5MB
} as const;

// 界面文本常量
export const UIText = {
  APP_TITLE: '鸿笺',
} as const;
